* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.my-iframe {
    width: 100vw;
    height: 100vh;
    border: none;
    overflow-x: hidden;
    transition: 0.7s linear;
}

.show {
    opacity: 1;
    visibility: visible;
}

.hide {
    opacity: 0;
    visibility: hidden;
}

.nav-div {
    display: flex;
    justify-content: space-between;
    width: 100vw;
    padding: 5px 10px;
    background: #fff;
    box-shadow: 0px .5vw 1.5vw rgba(0, 0, 0, 0.25);
    /* border-radius: 2vw; */
}

.flag-icon img {
    width: 3.5vw;
    height: 3.5vw;
}

.mynav {
    width: 60%;
    padding: 5px 10px;
    text-align: center;
    
    display: flex;
    position: relative;
}

.mynav label {
    flex: 1;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.mynav label a {
    position: relative;
    z-index: -1;
    color: #333;
    font-size: 1vw;
    font-weight: 500;
    text-decoration: none;
}

.mynav label a i {
    font-size: 1vw;
    margin: 0px .7vw;
}

.mynav input {
    display: none;
}

.mynav .tab {
    position: absolute;
    height: 100%;
    width: 20%;
    left: 0px;
    bottom: 0px;
    background: linear-gradient(to right, #f09819, #ff5858);
    border-radius: 5vw;
    transition: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mynav #home:checked~label.home a,
.mynav #find:checked~label.find a,
.mynav #simulate:checked~label.simulate a,
.mynav #data:checked~label.data a,
.mynav #about:checked~label.about a {
    color: #fff;
    transition: 0.6s;
}

.mynav #home:checked~.tab {
    left: 2%;
}

.mynav #find:checked~.tab {
    left: 22%;
}

.mynav #simulate:checked~.tab {
    left: 40%;
}

.mynav #data:checked~.tab {
    left: 60%;
}

.mynav #about:checked~.tab {
    left: 78%;
}